﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ihg-container has-ihg-sidemenu">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Session Report</li>
      </ol>
    </div>

    <div class="ihg-content-layout">
      <div class="ihg-form-title clearfix" style="margin: 0 15px 15px 15px;">
        <h5>${delegateName} ${sessionName} Report</h5>
      </div>

      <table class="table table-striped ihg-table tab-pane">
        <thead>
          <tr>
            <th>${empty sessionName ? 'Session' : 'Delegate'} Name</th>
            <th>By Admin</th>
            <th>By Assessor</th>
            <th>By HR</th>
          </tr>
        </thead>
        <tbody>
          <c:forEach var="sessionReport" items="${sessionReports}">
            <tr>
              <td>${sessionReport.key}</td>
              <td class="text-center">
                <c:choose>
                  <c:when test="${empty sessionReports[sessionReport.key]['BY_ADMIN']}">-</c:when>
                  <c:otherwise>
                    <a href="${not empty sessionReports[sessionReport.key]['BY_ADMIN'] ? sessionReports[sessionReport.key]['BY_ADMIN'].reportUrl : ''}" download="Report">Report</a>
                  </c:otherwise>
                </c:choose>
              </td>
              <td class="text-center">
                <c:choose>
                  <c:when test="${empty sessionReports[sessionReport.key]['BY_ASSESSOR']}">-</c:when>
                  <c:otherwise>
                    <a href="${not empty sessionReports[sessionReport.key]['BY_ASSESSOR'] ? sessionReports[sessionReport.key]['BY_ASSESSOR'].reportUrl : ''}" download="Report">Report</a>
                  </c:otherwise>
                </c:choose>
              </td>
              <td class="text-center">
                <c:choose>
                  <c:when test="${empty sessionReports[sessionReport.key]['BY_HR']}">-</c:when>
                  <c:otherwise>
                    <a href="${not empty sessionReports[sessionReport.key]['BY_HR'] ? sessionReports[sessionReport.key]['BY_HR'].reportUrl : ''}" download="Report">Report</a>
                  </c:otherwise>
                </c:choose>
              </td>
            </tr>
          </c:forEach>
        </tbody>
      </table>
    </div>


  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>


</body>

</html>
